package com.baiye.www.work.service.impl;


import com.baiye.www.spring.ioc.annotation.Autowired;
import com.baiye.www.spring.ioc.annotation.Service;
import com.baiye.www.work.dao.IAccountDao;
import com.baiye.www.work.service.IAccountService;


/**
 * 账户的业务层实现类
 */
@Service
public class AccountServiceImpl implements IAccountService {

    //    private IAccountDao accountDao = new AccountDaoImpl();
    @Autowired
    private IAccountDao accountDao;

//    private int i = 1;

    @Override
    public void saveAccount() {
        int i = 1;
        accountDao.saveAccount();
        System.out.println(i);
        i++;
    }
}
